package com.jiang.jixiang.ui.adapter;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.jiang.jixiang.R;
import com.jiang.jixiang.bean.SellerInfoBean;
import com.jiang.jixiang.bean.SellerListBean;
import com.ws.universal.tools.headimgview.CircleImageView;
import com.ws.universal.tools.utils.glide.GlideUtils;

public class OrderInfoAdapter extends BaseQuickAdapter<SellerListBean, BaseViewHolder> {
    public OrderInfoAdapter() {
        super(R.layout.item_orderinfo);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder holder, SellerListBean bean) {
        CircleImageView imgItem = holder.findView(R.id.imgItem);
        GlideUtils.CreateImageRound(bean.getLogo(), imgItem, R.mipmap.icon_defult_orderlist, R.mipmap.icon_defult_orderlist);
        holder.setText(R.id.tvItemName, bean.getName());
        holder.setText(R.id.tvItemAddress, bean.getDistance());
        //holder.setText(R.id.tvItemDistance, bean.getDistance());


    }
}
